package cn.gov.ssxmzj.controller;

import cn.gov.ssxmzj.entry.Result;
import cn.gov.ssxmzj.service.VillageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/village")
public class VillageController {

    @Autowired
    private VillageService service;

    @ResponseBody
    @RequestMapping("/getVillageInfo")
    public Result getVillageInfo(String villageId){
        return service.getVillageInfo(villageId,false);
    }
}
